package com.edu.app;

import com.edu.library.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author cj
 * @date 2018/11/22
 */
@SpringBootApplication
public class StarterSampleApp implements CommandLineRunner {


    @Autowired
    private Person person;
    public static void main(String[] args) {
        SpringApplication.run(StarterSampleApp.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        person.say();
    }
}
